package com.freight.common.wlhyupload.constant;

/**
 * 常量类
 */
public final class WlhyConstants {

    /**
     * 请求地址
     */
    // 请求加密密码的公钥地址
    public static final String PUBKEY_PATH = "https://shandong.wlhy.org.cn/wlhy-user/RsaController/getPubKey";
    // (登录)请求令牌地址
    public static final String TOKEN_PATH = "https://shandong.wlhy.org.cn/wlhy-user/user/exgLogin";
    // 上传数据测试环境地址
    public static final String SEND_CS_PATH = "https://shandong.wlhy.org.cn/wlhy-exchange-adjust/adjustMessage/send";
    // 上传数据正式环境地址
    public static final String SEND_ZS_PATH = "https://shandong.wlhy.org.cn/wlhy-exchange-kafka/message/sendMsg";

    /**
     * 缓存前缀
     */
    public static final String CACHE_PRE = "wlhy_upload:";
    // 加密密码的公钥
    public static final String PUBKEY_PWD = CACHE_PRE + "pubkey_pwd";
    // 加密随机秘钥的公钥
    public static final String PUBKEY_BW = CACHE_PRE + "pubkey_bw";

    // 字段PUBLIC_KEY
    public static final String PUBKEY_KEY = "PUBLIC_KEY";
    // 字段token
    public static final String TOKEN = "token";
    // token
    public static final String CACHE_TOKEN = CACHE_PRE + TOKEN;
    // token过期时间(2小时)
    public static final Long TOKEN_TIME = 2L;

    // 此包下的类是需要上传的单据数据类
    public static final String PACKAGE_NAME = "com.freight.tws.api.domain";

}
